package pl.edu.agh.experts.diseases;

import pl.edu.agh.experts.diseases.commons.Decision;
import pl.edu.agh.experts.diseases.commons.Symptom;

public class Question {
	private Symptom symptom;
	private Decision answer;
	private double weight;

	public Question(Symptom symptom, UserResponse response) {
		this(symptom, response.getDecision(), response.getWeight());
	}

	public Question(Symptom symptom, Decision answer) {
		this(symptom, answer, 0);
	}

	public Question(Symptom symptom, Decision answer, double weight) {
		this.symptom = symptom;
		this.answer = answer;
		this.weight = weight;
	}

	public Symptom getSymptom() {
		return symptom;
	}

	public Decision getAnswer() {
		return answer;
	}

	public double getWeight() {
		return weight;
	}
}
